<?php
// Init owncloud
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();

require_once(OC_App::getAppPath('resumes') . "/lib/resumes.php");
require_once(OC_App::getAppPath('resumes') . "/lib/search.php");

$model = new PResumesModelResumes(); 
list($resumes, $pagination, $token, $jobid, $jobtitle) = $model->getList(-1,8);


$tmpl = new OCP\Template('resumes', 'part.search.resume');
$keyword = JRequest::getString('keyword', '');
$tmpl->assign('pagination', $pagination);
$tmpl->assign('resumes', $resumes);
$tmpl->assign('keyword', $keyword);

$tmpl->printpage();
